package com.cqyc.imview

import android.content.Context
import androidx.core.app.NotificationManagerCompat


class Utils {
    companion object {
        fun isNotificationEnabled(context: Context): Boolean {
            return try {
                NotificationManagerCompat.from(context).areNotificationsEnabled()
            } catch (e: Exception) {
                e.printStackTrace()
                false
            }
        }
    }
}